﻿package net.jmp0.toast.levels 
{
	import punk.Actor;
	import flash.ui.Mouse;
	import punk.core.Spritemap;
	import punk.util.Input;
	
	/**
	 * ...
	 * @author Thodd
	 */
	public class MainMenuCursor extends Actor
	{
				
		//Cursor
		[Embed(source = '../res/mouseCursor.png')] private var imgMouseCursor:Class;
		private var sprCursor:Spritemap = FP.getSprite(imgMouseCursor, 32, 32, false, false, 1, 1, true);
		
		public function MainMenuCursor() {
			Mouse.hide();
			
			//The mouse cursor setup
			this.sprite = sprCursor;
			this.delay = (30 / 4);
			this.depth = -400;
			
		}
		
		override public function render():void {
			updateImage(sprite.number);
			//drawing the cursor
			drawSprite(sprite, image, Input.mouseX, Input.mouseY, false, false);
		}
		
	}

}